package cn.fsd.vo;

import java.util.List;
import lombok.Data;

@Data
public class PaymentBean {

  String commodity_id;
  // 分类名称
  // 一级分类
  String first_class;
  //二级分类
  String second_class;
  // 商品名称
  String commodity_name;
  // 送货数量
  Integer delivery_num = 0;
  // 收款金额
  Integer receive_money = 0;
  // 退货数量
  Integer return_num = 0;
  // 退货金额
  Integer return_money = 0;

  // 应收款
  Integer due_receive = 0;
  // 实收款
  Integer actual_receive = 0;
  // 退款
  Integer due_return = 0;
  List<PaymentBean> records;

  public void increDeliveryNum(Integer num,Integer money){
    this.delivery_num+=num;
    this.receive_money+=money;
  }

  public void increReturnNum(Integer num,Integer money){
    this.return_num+=num;
    this.return_money+=money;
  }

  public void increDue(int actual_receive,int due_return){
    this.due_receive += actual_receive;
    this.due_return += due_return;
  }
}
